package t20211205;

/**
 * @Author: DengJia
 * @Date: 2021/12/5 13:54
 * @Description:
 */

public class B {
    private int index = 0;
    private U[] us = new U[10];
    U[] bM1(U u) {
        if (index < 10) {
            us[index] = u;
            index++;
        }
        return us;
    }

    void bM2() {
        for (int i = 0; i < 10; i++) {
            us[i] = null;
        }
    }

    void bM3() {
        for (int i = 0; i < 10; i++) {
            us[i].uM1();
            us[i].uM2();
            us[i].uM3();
        }
    }
}
